package com.pray.praymall.product.feign;

import com.pray.common.to.SkuHasStockTo;
import com.pray.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * do something
 *
 * @author 魂悸魄
 * @date 2020/9/12 17:14
 */
@FeignClient("praymall-ware")
public interface WareFeignService {
    /**
     * 查询sku是否有库存
     * @param skuIds skuIds
     * @return 标准返回体
     */
    @PostMapping("/ware/waresku/hasstock")
    R getSkusHasStock(@RequestBody List<Long> skuIds);
}
